/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package courseScheduler;

import java.awt.GridLayout;

/**
 *
 * @author david
 */
public class MainFrame extends javax.swing.JFrame{
    MainFrame(SpecialContentPanel newContent,boolean visability){
        content = newContent;
        this.setVisible(visability);
        init();
    }

    private void init(){
        this.setDefaultCloseOperation(EXIT_ON_CLOSE);
        menuBar = new javax.swing.JMenuBar();
        menuBar.setSize(10000, 15);
        fileMenu = new javax.swing.JMenu("File");
        fileMenu.setSize(15, 15);
        editMenu = new javax.swing.JMenu("Edit");
        editMenu.setSize(15, 15);
        menuBar.add(fileMenu);
        menuBar.add(editMenu);
        LayoutManager = new javax.swing.GroupLayout(this);
        javax.swing.GroupLayout.ParallelGroup hgroup = LayoutManager.createParallelGroup();
        hgroup.addComponent(menuBar).addGap(10).addComponent(content);
        LayoutManager.setHorizontalGroup(hgroup);
        javax.swing.GroupLayout.SequentialGroup vgroup = LayoutManager.createSequentialGroup();
        vgroup.addComponent(menuBar).addGap(10).addComponent(content);
        LayoutManager.setVerticalGroup(vgroup);
        pack();
    }

    javax.swing.JMenuBar menuBar;
    javax.swing.JMenu fileMenu;
    javax.swing.JMenu editMenu;
    javax.swing.GroupLayout LayoutManager;

    SpecialContentPanel content;
}
